import turtle

# 创建一个窗口和画笔
screen = turtle.Screen()
pen = turtle.Turtle()

# 绘制三角形
pen.speed(2)
for i in range(3):
    pen.forward(100)
    pen.left(120)

# 点击关闭窗口
screen.exitonclick()